package cn.kgc.spring03.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/4/27
 * @Description:
 */
@Data
@Component
public class User {

    //@Value("tom")
    @Value("${name}")
    private String name;
    //@Value("20")
    @Value("${age}")
    private Integer age;

}
